New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

indicative-formatters

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indicative-formatters

A collection of formatters used by Indicative

  • 7.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.4K
decreased by-66.75%
Maintainers
1
Weekly downloads
 
Created
Source

Indicative Formatters

Collection of error formatters used by Indicative

circleci-image npm-image

Indicative has first class support for formatting error messages with the help of an Error formatter. This repo contains a handful of them.

Table of contents

Usage

Install the package from npm registry as follows:

npm i indicative-formatters

# yarn
yarn add indicative-formatters

and then use it as follows:

import { VanillaFormatter } from 'indicative-formatters'

const formatter = new VanillaFormatter()
formatter.addError('Required validation failed', 'username', { name: 'required', args: [] })

// Get all errors
formatter.toJSON()

API Docs

Following are the autogenerated files via Typedoc

Maintainers

Harminder virk

FAQs

Package last updated on 26 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc